package com.icss.day01;

public class Dog {

    public Dog() {
        System.out.println("---");
    }

    public Dog(int legs, String color) {
        this.legs = legs;
        this.color = color;
    }

    public Dog(String color) {
        this(4, color); // 必须在第一行

    }

    private int legs;
    private String color;



    public int getLegs() {
        return legs;
    }

    public void setLegs(int legs) {
        this.legs = legs;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
